package cn.globalph.housekeeper.ui.main
import cn.globalph.housekeeper.data.model.BaseModel
import cn.globalph.housekeeper.data.model.UpdateModel
import cn.globalph.housekeeper.data.params.LocationParam
import cn.globalph.housekeeper.data.retrofit.HttpManager

class MainRepository (
    private val httpManager: HttpManager
){
    suspend fun checkUpdate(versionCode:Int):BaseModel<UpdateModel>{
        return httpManager.api.checkUpdate(versionCode)
    }

    suspend fun uploadLocation(param:LocationParam):BaseModel<String>{
        return httpManager.api.uploadLocation(param)
    }
}